﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ByteSite.API.Model
{
    public class SubmitRequest
    {
        /// <summary>
        /// 授权接口获取的access token
        /// </summary>
        public string token { get; set; }

        /// <summary>
        /// 订单方平台code（id）
        /// </summary>
        public string platformCode { get; set; }

        /// <summary>
        /// 阳光公采商城的订单单号
        /// </summary>
        public string yggc_order { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string sku { get; set; }
        public List<SubmitSku> skuObj { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 一级地址
        /// </summary>
        public string province { get; set; }

        /// <summary>
        /// 二级地址
        /// </summary>
        public string city { get; set; }

        /// <summary>
        /// 三级地址
        /// </summary>
        public string county { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string zip { get; set; }

        /// <summary>
        /// 座机号 (与mobile其中一个有值即可)
        /// </summary>
        public string phone { get; set; }

        /// <summary>
        /// 手机号 （与phone其中一个有值即可）
        /// </summary>
        public string mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }

        /// <summary>
        /// 备注（少于100字）
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 采购单位名称
        /// </summary>
        public string dep_name { get; set; }

        /// <summary>
        /// 发票抬头
        /// </summary>
        public string invoice_title { get; set; }

        /// <summary>
        /// 1普通发票;2增值税发票；3 电子发票；默认为普通发票；
        /// </summary>
        public string invoice_type { get; set; }

        /// <summary>
        /// 纳税人识别号
        /// </summary>
        public string invoice_org_code { get; set; }

        /// <summary>
        /// 增值票收票人 备注：当invoice_type=2 且时则此字段必填
        /// </summary>
        public string invoice_name { get; set; }

        /// <summary>
        /// 注册电话 备注：当invoice_type=2 且时则此字段必填
        /// </summary>
        public string invoice_phone { get; set; }

        /// <summary>
        /// 开户银行  备注：当invoice_type=2 且时则此字段必填
        /// </summary>
        public string invoice_bank { get; set; }

        /// <summary>
        /// 开户行帐号 备注：当invoice_type=2 且时则此字段必填
        /// </summary>
        public string invoice_bank_code { get; set; }

        /// <summary>
        /// 注册地址 备注：当invoice_type=2 且时则此字段必填
        /// </summary>
        public string invoice_address { get; set; }

        /// <summary>
        /// 收票联系电话
        /// </summary>
        public string invoice_mobile { get; set; }

        /// <summary>
        /// 收票地址
        /// </summary>
        public string invoice_receipt_address { get; set; }

        /// <summary>
        /// 1：货到付款，2：集中支付， 3：在线支付， 4：支票 5：账期支付 6：先款后货
        /// </summary>
        public string payment { get; set; }

        /// <summary>
        /// 订单金额（包含运费）
        /// </summary>
        public string order_price { get; set; }

        /// <summary>
        /// 运费
        /// </summary>
        public string freight { get; set; }

        /// <summary>
        /// 订单模式：1-协议价（默认）)；2-团购模式； 3-特惠模式; 4-阶梯价模式 
        /// </summary>
        public string mode { get; set; }

    }

    public class SubmitSku
    {
        public string sku { get; set; }

        public int? num { get; set; }

        public decimal? price { get; set; }

        public int? mode { get; set; }

        public List<SubmitSkuYanbao> yanbao { get; set; }
    }

    public class SubmitSkuYanbao
    {
        public string sku { get; set; }

        public decimal? price { get; set; }
    }
}